package com.mxx.common.netty.annotation;

import com.mxx.common.netty.NettyServiceProperties;
import com.mxx.common.netty.config.LoadNettyHttpServer;
import com.mxx.common.netty.config.LoadNettySelector;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * @Auther: Mr. Zeng
 * @Date: 2020/6/29 15:18
 * @Description: 开启NettyHttp
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@EnableConfigurationProperties(NettyServiceProperties.class)
@Import(value = {LoadNettyHttpServer.class, LoadNettySelector.class})
public @interface EnableNettyHttp {
}
